<admintpl file="header" />
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="__TMPL__Public/assets/css/infomation.css" rel="stylesheet" />
<link type="text/css" href="__PUBLIC__/js/select2/select2.min.css" rel="stylesheet" />
</head>
<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:U('ConstructionLaisonNote/index')}">工程联系单管理</a></li>
            <if condition="($level eq '0' OR $level eq '1')">
            	<li><a href="{:U('ConstructionLaisonNote/add')}">新增工程联系单</a></li>
            </if>
            <li class="active"><a href="{:U('ConstructionLaisonNote/edit', array('id'=>I('request.id/s','')))}">查看工程联系单</a></li>
        </ul>
        <section class="tab-pane active fade in" id="access">
            <div class="row">
                <div class="col-xs-12 col-md-12 col-lg-12">
                    <div class="panel panel-info">
                        <div class="panel-body">
                            <form method="post" class="form-horizontal form-inline tg js-ajax-form" action="" method="post">
                                <div class="row tg-header">
                                    <div class="col-md-12 text-center">
                                        <h3>工程联系单</h3>
                                        <hr />
                                    </div>
                                    <div class="col-md-12">
                                        <p class="pull-right tg-serialnum"><b>编号:</b><input class="input-xt" name="code" value="{$result.code}"/></p>
                                    </div>
                                    <div class="col-md-12">
                                        <p class="tg-to">
                                            <label>工程名称:</label>
                                            <input type="text" class="input-xt input-deptname"  value="{$job_name}" readonly  />
                                        </p>
                                        <p class="pull-right">
                                            <label>建设单位:</label>
                                            <input class="input-xt input-deptname" type="text" value="杭州市中医院"   />
                                        </p>
                                    </div>
                                </div>
                                <table class="table table-bordered">
                                    <tr>
                                        <td>
                                            <label>提交设计单位内容:</label>
                                            <textarea style="height:200px; width:100%" name="submit_content">{$result.submit_content}</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label>设计回复及修改内容:</label>
                                            <textarea style="height:200px; width:100%" name="reply_and_modify">{$result.reply_and_modify}</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label>变更后图纸的编号（设计院提交的电子版图纸文档）:</label>
                                            <foreach name="results" item="vo">
                                                <div class='controls' style='margin-top:10px;margin-left:20px'>
                                                    <a class="fileDownload" path="{$vo.file_path}" name="{$vo.file_name}" data-type="{$vo.file_type}">{$vo.file_name}</a>
                                                </div>
                                            </foreach>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <label>发送:</label>
                                            <select disabled name="carbon_copy_department" id="carbon_copy_department" style="width:60%;" read class="select2" multiple="multiple" data-placeholder="选择抄送单位">
                                                <foreach name="data" item="vo">
                                                    <option value="{$vo.id}">{$vo.department_name}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>
                                </table>
                                <div class="form-actions">
                                    <a class="btn btn-default" href="{:U('ConstructionLaisonNote/index')}">{:L('BACK')}</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </section>

    </div>
    <script src="__PUBLIC__/js/common.js"></script>
    <script src="__PUBLIC__/js/select2/i18n/zh-cn.js"></script>
    <script src="__PUBLIC__/js/select2/select2.min.js"></script>
    <script src="__PUBLIC__/js/select2/select2.default.js"></script>
    <script type="text/javascript">
        $(document).ready(function (e) {
            $("input").attr("readonly", true);
            $("textarea").attr("readonly", true);
            $("#carbon_copy_department").select2().val({$dept2}).trigger('change');
        });
    </script>
</body>
</html>